﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeBehind="AllStock.aspx.cs" Inherits="UdrinkWater_Project.Officer.AllStock" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" 
        HeaderText="รายการเบิกจ่ายสินค้าคงคลัง" Width="980px">
        <HeaderStyle Font-Size="Large" />
        <PanelCollection>
            <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                <dx:ASPxGridView ID="gv1" runat="server" AutoGenerateColumns="False" 
                    KeyFieldName="Product_Date" OnRowCommand="ASPxGridView1_RowCommand" 
                    Width="100%">
                    <Columns>
                        <dx:GridViewDataTextColumn Caption="รายการ" FieldName="Number" 
                            ShowInCustomizationForm="True" UnboundType="String" VisibleIndex="1" 
                            Width="80px">
                            <Settings AllowAutoFilter="False" />
<Settings AllowAutoFilter="False"></Settings>
                            <DataItemTemplate>
                                <%#Container.ItemIndex +1 %>
                            </DataItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <CellStyle HorizontalAlign="Center">
                            </CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataDateColumn Caption="วันทำรายการ" FieldName="Product_Date" 
                            ShowInCustomizationForm="True" VisibleIndex="1" Width="300px">
                            <PropertiesDateEdit DisplayFormatString="dd / MM / yyyy HH:mm:ss.fff" 
                                EditFormat="DateTime">
                            </PropertiesDateEdit>
                        </dx:GridViewDataDateColumn>
                        <dx:GridViewDataTextColumn Caption="รหัสพนักงาน" FieldName="Act_Officer" 
                            ShowInCustomizationForm="True" VisibleIndex="2" Width="200px">
                            <Settings AutoFilterCondition="Contains" FilterMode="DisplayText" />
<Settings FilterMode="DisplayText" AutoFilterCondition="Contains"></Settings>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="ชื่อพนักงาน" FieldName="EmpName" 
                            ReadOnly="True" ShowInCustomizationForm="True" VisibleIndex="3" 
                            Width="200px">
                            <Settings AutoFilterCondition="Contains" FilterMode="DisplayText" />
<Settings FilterMode="DisplayText" AutoFilterCondition="Contains"></Settings>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="รายละเอียด" ShowInCustomizationForm="True" 
                            VisibleIndex="4">
                            <DataItemTemplate>
                                <table style="width: 100%">
                                    <tr>
                                        <td align="center">
                                            <asp:LinkButton ID="LinkButton1" runat="server" 
                                                CommandArgument='<%#Eval("Product_Date","{0:yyyy-MM-dd HH:mm:ss.fff}") %>' 
                                                CommandName="Cmd_Select" ToolTip="ดูข้อมูล">รายละเอียด</asp:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                            </DataItemTemplate>
                        </dx:GridViewDataTextColumn>
                    </Columns>
                    <SettingsPager PageSize="30">
                    </SettingsPager>
                    <Settings ShowFilterRow="True" />

<Settings ShowFilterRow="True"></Settings>
                </dx:ASPxGridView>
            </dx:PanelContent>
        </PanelCollection>
    </dx:ASPxRoundPanel>
</asp:Content>
